/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package upgmadendro.diagram;

/**
 *
 * @author Shadev
 */
public class DiagramObject {
    private String name;
    private double born=0.0;
    private double dead=1.0;
    private DiagramObject turnsInto;
    private int position = 0;


    public void printState(){
        System.out.println("name : "+name);
        System.out.println("born : "+born);
        System.out.println("dead : "+dead);
        System.out.println(" turnsInto "+turnsInto.name);

    }
    public DiagramObject(String name){
        this.name=name;
    }

    public DiagramObject(String name, double born){
        this.name=name;
        this.born=born;
    }
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the born
     */
    public double getBorn() {
        return born;
    }

    /**
     * @param born the born to set
     */
    public void setBorn(double born) {
        this.born = born;
    }

    /**
     * @return the dead
     */
    public double getDead() {
        return dead;
    }

    /**
     * @param dead the dead to set
     */
    public void setDead(double dead) {
        this.dead = dead;
    }

    /**
     * @return the turnsInto
     */
    public DiagramObject getTurnsInto() {
        return turnsInto;
    }

    /**
     * @param turnsInto the turnsInto to set
     */
    public void setTurnsInto(DiagramObject turnsInto) {
        this.turnsInto = turnsInto;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }
}
